﻿using System;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Sgml;
using System.Xml;

namespace Workshop
{
    [TestClass]
    public class sgml_test
    {
        [TestMethod]
        public void try_sgml()
        {
            // setup SgmlReader
                Sgml.SgmlReader sgmlReader = new Sgml.SgmlReader();
                sgmlReader.DocType = "HTML";
                sgmlReader.WhitespaceHandling = WhitespaceHandling.All;
                sgmlReader.CaseFolding = Sgml.CaseFolding.ToLower;
                sgmlReader.InputStream = new StreamReader(@"C:\Users\Administrator\Documents\Visual Studio 2012\Projects\NFLManager\Workshop\data\input.htm");

                // create document
                XmlDocument doc = new XmlDocument();
                doc.PreserveWhitespace = true;
                doc.XmlResolver = null;
                doc.Load(sgmlReader);
        }
    }
}
